package com.xhkj.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xhkj.util.SnowGenId;

import lombok.Getter;
import lombok.Setter;
import tk.mybatis.mapper.annotation.KeySql;

@Table(name = "address")
@Entity
@Getter
@Setter
public class Geocodes {
	@Id
	@KeySql(genId = SnowGenId.class)
    private String id;
 
    // 结构化地址信息
    @Column(name = "formatted_address")
    private String formatted_address;
    // 所在省
    @Column(name = "province")
    private String province;
    // 城市
    @Column(name = "city")
    private String city;
    // 城市编码
    @Column(name = "citycode")
    private String citycode;
    // 地址所在的区
    @Column(name = "district")
    private String district;
    // 地址所在的乡镇
    @Column(name = "township")
    private String township;
    // 街道
    @Column(name = "street")
    private String street;
    // 门牌
    @Column(name = "number")
    private String number;
    // 区域编码
    @Column(name = "adcode")
    private String adcode;
    // 坐标点
    @Column(name = "location")
    private String location;
    // 匹配级别
    @Column(name = "level")
    private String level;
    @Column(name = "name")
    private String name;
    @Column(name = "tel")
    private String tel;
}
